home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / remote / race140.zip / USERFIX.DOC < prev    next >
Text File  |  1991-05-15  |  6KB  |  201 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.                             UserFix Version 1.00
  29.  
  30.                                    USERFIX
  31.               Copyright 1991 Michael F. Janke All Rights Reserved
  32.  
  33.  
  34.  
  35.  
  36.  
  37.       Running USERFIX               USERFIX                      Page 1
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.                                 Using USERFIX
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.       1.1  General Information
  52.  
  53.       USERFIX can perform the following functions:
  54.  
  55.            1.  Create/Rewrite LASTREAD.BBS
  56.  
  57.            2.  Create/Rewrite USERSXI.BBS
  58.  
  59.            3.  Reconstruct a trashed USERSXI.BBS
  60.  
  61.       USERFIX is provided on an "as-is" basis.  Since it's main  purpose
  62.       is to attempt to recover trashed user files, under no cirumstances
  63.       will I accept any responsibility for anything that may  happen  to
  64.       your user files by using USERFIX.
  65.  
  66.       Please be aware that USERFIX does NOT open the  user  files  in  a
  67.       shareable  manner.   There is no point in doing so because USERFIX
  68.       is not something one would want to use while the user base  is  in
  69.       use by another task.
  70.  
  71.       The first two functions, Create/Rewrite LASTREAD and  USERSXI  can
  72.       be  handled  quite well with the utils supplied with RemoteAccess.
  73.       In fact, RemoteAccess itself will rewrite those files if it  feels
  74.       they  are  invalid.  These functions were placed in USERFIX during
  75.       beta testing when there was a need and I saw no reason  to  remove
  76.       them now that RA has been released.
  77.  
  78.       The third function is something that RA or its utils can't do.
  79.  
  80.       USERFIX will NOT correct a trashed USERS.BBS.
  81.  
  82.       USERFIX finds your user  files  by  getting  the  path  info  from
  83.       RACE.CFG.   Since  USERFIX  is  only  meant to be distributed with
  84.       RACE, you should have the RACE.CFG file.  If you don't, you  can't
  85.       run USERFIX.
  86.  
  87.  
  88.  
  89.  
  90.  
  91.       Running USERFIX               USERFIX                      Page 2
  92.  
  93.  
  94.       1.2  - Create/Rewrite LASTREAD.BBS
  95.  
  96.  
  97.       Selecting  this  option  will  allow  you   to   initialize   RA's
  98.       LASTREAD.BBS  file.   This  file  contains  the  last read message
  99.       pointers for each of your users.
  100.  
  101.       If your LASTREAD.BBS exists when this option is run,  it  WILL  BE
  102.       ERASED!   This  option is only meant to be used if LASTREAD.BBS is
  103.       trashed and unusable.
  104.  
  105.       USERFIX will go through your Users.bbs and get  the  high  message
  106.       read  for each user and use this figure to initialize the LASTREAD
  107.       record for that user.
  108.  
  109.  
  110.  
  111.  
  112.       1.3  - Create/Rewrite USERSXI.BBS
  113.  
  114.  
  115.       Like the create/rewrite LASTREAD option, this will ERASE this file
  116.       and create it anew.
  117.  
  118.       When USERFIX creates this file it fills the COMBINED  read  marker
  119.       storage  portion  of  it with hex FF.  What this means is that all
  120.       your users will have all combined board settings initially set  to
  121.       ON.
  122.  
  123.       USERFIX will also go through your Users.bbs  file  and  reset  all
  124.       users  pointers  to  the  USERSXI.BBS file.  Each user record will
  125.       point to a valid, though empty, USERSXI.BBS record when done.
  126.  
  127.  
  128.  
  129.  
  130.  
  131.       1.4  - Reconstruct USERSXI.BBS
  132.  
  133.  
  134.       This option will allow you to recover as  much  data  as  possible
  135.       from  a trashed USERSXI.BBS file.  You may never need this option,
  136.       but if you do you will find that it may  save  data  you  consider
  137.       important.
  138.  
  139.       Here's how it works.  USERFIX  starts  at  the  beginning  of  the
  140.       USERS.BBS  file  and  reads each user record one at a time.  As it
  141.       reads a user record, USERFIX  attempts  to  read  the  USERSXI.BBS
  142.       record to which the USERS.BBS record points.
  143.  
  144.  
  145.  
  146.  
  147.       Running USERFIX               USERFIX                      Page 3
  148.  
  149.  
  150.       If USERFIX is able to read the user's USERSXI.BBS  record  without
  151.       error,  the  USERSXI.BBS record is copied to a temporary file.  If
  152.       an error is generated while trying to read the USERSXI.BBS record,
  153.       as  it  might  be  if  the user's pointer is invalid, USERFIX then
  154.       creates an initialized USERSXI record for that user and places  it
  155.       in the temporary file.
  156.  
  157.       Please  note  that  USERFIX  does   not   incorporate   artificial
  158.       intelligence.   There is no way to know if the USERSXI data that a
  159.       user record points to really belongs to that user.   USERFIX  only
  160.       knows whether or not it finds a valid, readable record.
  161.  
  162.       Once USERFIX has gone through all users, the  old  USERSXI.BBS  is
  163.       deleted  and  the  temporary file is renamed to USERSXI.BBS.  Each
  164.       user record now points to a valid record in USERSXI and except for
  165.       those  users  that  had trashed USERSXI pointers, you should still
  166.       have all the data you had before your problems began.
  167.  
  168.  
  169.  
  170.       1.5  Status Line
  171.  
  172.  
  173.       USERFIX displays some useful information on the bottom line of the
  174.       screen.   This  is  updated  any time USERFIX performs any type of
  175.       record rebuilding or initialization.
  176.  
  177.       Assuming you have 100 users  and  all  files  are  of  the  proper
  178.       length, the status line would look like this:
  179.  
  180.       Records(0..99) USERS = 100 / LASTREAD = 100 / USERSXI = 100
  181.  
  182.       If you were to fire up USERFIX and all three user  files  did  not
  183.       have the same number next to them, you have a problem that USERFIX
  184.       may be able to correct.
  185.  
  186.       Although an equal number of records in each file  is  not  a  100%
  187.       assurance that all is ok, in most cases it is a good indication.
  188.  
  189.  
  190.  
  191.       1.6  In Closing
  192.  
  193.  
  194.       USERFIX has been tested  on  trashed  and  incomplete  files  with
  195.       excellent  success.   This does not mean that USERFIX can cure all
  196.       the problems that may occur.
  197.  
  198.       Here's hoping you never have to use USERFIX!
  199.  
  200.  
  201.